package fr.upmc.aladyn.transactionables.tests.objects;

import fr.upmc.aladyn.transactionables.annotations.Transactionable;

/**
 * <p>A Transactionnable Point3D, extended from a Point, with a third dimension : z.</p>
 * @author Alexis Deluze
 *
 */
@Transactionable
public class Point3D extends Point {

	private int z;

	public Point3D(int x, int y, int z) {
		super(x, y);
		this.z = z;
	}

	public int getZ(){
		return z;
	}

	public void setZ(int z){
		this.z = z;
	}
	
	public String toString(){
		return "Point3D("+getX()+","+getY()+","+this.z+")";
	}
}
